package com.campus.dao;

import com.campus.model.Teacher;
import com.campus.model.User;

import java.util.List;

public interface TeacherDao {
    boolean addTeacher(Teacher teacher, User user);
    Teacher getTeacherById(Integer id);
    List<Teacher> searchTeachers(String teacherName, String subject, String school);
    public int updateTeacher(Integer id, Teacher teacher);
    public int deleteTeacherById(Integer id);
    // 查询所有教师
    List<Teacher> findAllTeachers();
}
